/**
 * @author janet
 * @date 2015-5-20
 */
package net.oscorner.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;


/**
 * @author janet
 * @date 2015-5-20 上午9:36:29
 * 
 */

public class SessionListener implements HttpSessionListener{

	/* (non-Javadoc)
	 * @see javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
	 */
	@Override
	public void sessionCreated(HttpSessionEvent hsevent) {
		// TODO Auto-generated method stub
		System.out.println(hsevent.getSession().getAttributeNames()+"||created");
	}

	/* (non-Javadoc)
	 * @see javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
	 */
	@Override
	public void sessionDestroyed(HttpSessionEvent hsevent) {
		// TODO Auto-generated method stub
		System.out.println(hsevent.getSession().getAttributeNames()+"||destroyed");
	}

}
